from django.db import models
from django.utils import timezone


# class ChatMessage(models.Model):
#     id = models.AutoField(primary_key=True)
#     content = models.CharField(max_length=200, blank=False, verbose_name="发送的消息内容")
#     is_read = models.BooleanField(default=False, verbose_name="是否已读")
#     send_id = models.IntegerField('发送者ID')
#     receive_id = models.IntegerField('接收者ID')
#     created_on = models.DateTimeField('创建时间', default=timezone.now)


class FansMessage(models.Model):
    id = models.AutoField(primary_key=True)
    is_read = models.BooleanField(default=False, verbose_name="是否已读")
    receive_id = models.IntegerField('接收者ID')
    created_by_id = models.IntegerField('创建的用户ID', default=0)
    created_on = models.DateTimeField('创建时间', default=timezone.now)


class AtMessage(models.Model):
    id = models.AutoField(primary_key=True)
    is_read = models.BooleanField(default=False, verbose_name="是否已读")

    comment_id = models.IntegerField('评论ID')
    receive_id = models.IntegerField('接收者ID')
    created_by_id = models.IntegerField('创建的用户ID', default=0)
    created_on = models.DateTimeField('创建时间', default=timezone.now)
